package com.atguigu.gulimail.product.dao;

import com.atguigu.gulimail.product.entity.AttrEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ??Ʒ?
 * 
 * @author tongyinan
 * @email 1248961352@qq.com
 * @date 2024-06-12 14:58:22
 */
@Mapper
public interface AttrDao extends BaseMapper<AttrEntity> {

    @Select("SELECT  attr_id FROM 'pms_attr' WHERE attr_id IN(?) AND search_type = 1 ")
    List<Long> selectSearchAttrIds(@Param("attrIds") List<Long> attrIds);
}
